import $request from '@/util/request' //axios与后台交换ajax(异步)框架

/**
 * 电影类型统计接口
 */
export const findAllCinemaApi = () => {
	return $request({
		method: 'get',
		url: '/cinema/findAllCinemas'
	});
}

/**
 * 根据电影院查询影厅
 */
export const findHallsByCinemaApi = (cinemaId) => {
	return $request({
		method: 'get',
		url: '/hall/findHallsByCinema?cinemaId='+cinemaId
	});
}

export const scheduleAddApi=(p)=>{
	return $request({
		method:'post',
		url:'/schedule/addSchedule',
		data:p
	});
}